def Fenik(t):
    for b in range(2,int(t**0.5)+t):
        if t%b==0:
            break
        else:
            print("простое")
            break
Words=["zero","one","two","three","four","five","six","seven","eight","nine"]
A=input().split()
if len(A)!=3:
    print("Wrong input!")
else:
    for i in range (3):
        if A[i] not in Words:
            print("Wrong input!")
            break
for i in range (10):
    if A[0] == Words[i]:
        x=i*100
    if A[1] == Words[i]:
        y=i*10
    if A[2] == Words[i]:
        z=i*1
s=x+y+z
Fenik(s)
